package com.sinsz.wxpn.properties;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.validation.annotation.Validated;

import javax.validation.constraints.NotEmpty;

/**
 * 微信公众号相关配置
 * @author chenjianbo
 * @date 2018-11-12
 */
@Validated
@ConfigurationProperties("sinsz.wxpn")
public class WxpnProperties {

    /**
     * 微信公众号对应的微信号
     */
    @NotEmpty
    private String wechatId;

    /**
     * 微信公众号开发者ID
     */
    @NotEmpty
    private String appId;

    /**
     * 微信公众号开发者密码
     */
    @NotEmpty
    private String appSecret;

    /**
     * 服务器设置token
     * <p>服务器设置</p>
     */
    private String aesToken;

    /**
     * 服务器设置消息处理对象
     * <p>服务器设置</p>
     */
    private Class<?> aesClass;

    /**
     * 服务器设置EncodingAESKey
     * <p>服务器设置</p>
     */
    private String aesKey;

    /**
     * 授权跳转地址
     */
    private String oauth;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getAppSecret() {
        return appSecret;
    }

    public void setAppSecret(String appSecret) {
        this.appSecret = appSecret;
    }

    public String getAesKey() {
        return aesKey;
    }

    public void setAesKey(String aesKey) {
        this.aesKey = aesKey;
    }

    public String getAesToken() {
        return aesToken;
    }

    public void setAesToken(String aesToken) {
        this.aesToken = aesToken;
    }

    public Class<?> getAesClass() {
        return aesClass;
    }

    public void setAesClass(Class<?> aesClass) {
        this.aesClass = aesClass;
    }

    public String getWechatId() {
        return wechatId;
    }

    public void setWechatId(String wechatId) {
        this.wechatId = wechatId;
    }

    public String getOauth() {
        return oauth;
    }

    public void setOauth(String oauth) {
        this.oauth = oauth;
    }
}
